package com.galaxy.coupon.feign;

import com.galaxy.common.core.domain.R;
import com.galaxy.coupon.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 商品服务接口
 */
@FeignClient(
    contextId = "remoteUserCouponService",
    value = "galaxy-user",
    fallbackFactory = RemoteUserFallbackFactory.class,
    configuration = FeignConfig.class
)
public interface RemoteUserService {

    @PutMapping("/api/account/updatePoints")
    R<Boolean> updateAvatar(@RequestParam("userId")Long userId, @RequestParam("points") Integer points);


}
